# -*- coding:utf-8 -*-
from . import db


class User(db.Model):
    """
    用户 ORM实体类
    """
    __tablename__ = "user"

    id = db.Column(db.String(36), primary_key=True)
    logon_name = db.Column(db.String(64),nullable=False)
    display_name = db.Column(db.Boolean, nullable=False)

    def __repr__(self):
        return "MapData: { id: %s , logon_name: %s, display_name: %s }" % (self.id, self.logon_name, self.display_name)
